package com.ruoyi.data.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 违规记录对象 tdata_ht_wg
 *
 * @author ruoyi
 * @date 2024-06-05
 */
@Data
@Accessors(chain = true)
public class TdataHtWg extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 房间id
     */
    @Excel(name = "房间id")
    private String roomId;
    @ApiModelProperty("房间号")
    private String roomNo;

    @ApiModelProperty("学校ID")
    private String schoolId;
    @ApiModelProperty("楼座ID")
    private String buildId;
    @ApiModelProperty("查询：1：日用量；2：月用量")
    private String range;
    @ApiModelProperty("查询区间：[开始时间，结束时间]")
    private List<String> dtList;
    @ApiModelProperty("违规次数")
    @Excel(name = "违规次数")
    private int wgCount;

    @ApiModelProperty("时间")
    @Excel(name = "时间")
    private String date;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("更新时间")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime dt;

    /**
     * 违规时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("违规时间")
    @Excel(name = "违规时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime wgDt;

    /**
     * 违规原因
     */
    @Excel(name = "违规原因")
    @ApiModelProperty("违规原因")
    private Long wgReason;

    @Excel(name = "违规功率")
    @ApiModelProperty("违规功率")
    private BigDecimal wgPower;

    /**
     * 通讯状态
     */
    @Excel(name = "通讯状态")
    @ApiModelProperty("通讯状态")
    private Long runStatus;

    @ApiModelProperty("楼座名称")
    private String buildName;

    @ApiModelProperty("学校名称")
    private String schoolName;

    @ApiModelProperty("楼层号")
    private Integer floorNo;

    @ApiModelProperty("楼层ID")
    private String floor;

}
